package cn.com.surker.lab.entity;

import cn.com.surker.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 强度等级优化材料消耗详细表
 * </p>
 *
 * @author admin
 * @since 2024-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class LabLevelOptimizeMaterial extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 标识
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 公司ID
	 */
	private Long orgId;

	/**
	 * 理论配合比库id
	 */
	private Long levelOptimizeId;

	/**
	 * 材料类型
	 */
	private Long materialType;

	/**
	 * 材料类型名
	 */
	private String materialTypeTxt;

	/**
	 * 材料名称
	 */
	private Long materialId;

	/**
	 * 材料名称
	 */
	private String materialName;

	/**
	 * 设计用量
	 */
	private Double used;
	public LabLevelOptimizeMaterial(){}
	public LabLevelOptimizeMaterial(Long orgId, Long levelOptimizeId, Long materialType, String materialTypeTxt, Long materialId, String materialName, Double used) {
		this.orgId = orgId;
		this.levelOptimizeId = levelOptimizeId;
		this.materialType = materialType;
		this.materialTypeTxt = materialTypeTxt;
		this.materialId = materialId;
		this.materialName = materialName;
		this.used = used;
	}
	public LabLevelOptimizeMaterial(Long orgId, Long levelOptimizeId, Long materialType, String materialTypeTxt,
									Long materialId, String materialName, Double used, Integer status, Date createTime) {
		this.orgId = orgId;
		this.levelOptimizeId = levelOptimizeId;
		this.materialType = materialType;
		this.materialTypeTxt = materialTypeTxt;
		this.materialId = materialId;
		this.materialName = materialName;
		this.used = used;
		this.status = status;
		this.createTime = createTime;
	}
}
